package com.itheima.day05_method;

public class Demo2_printHelloWorld {
    public static void main(String[] args) {
//        printhello();
        printhello2(5);
        System.out.println("------------------------");
        printhello2(6);
    }

    public static void printhello(){
        for (int i = 0 ; i < 3 ; i++) {
            System.out.println("hello world");
        }
    }
    public static void printhello2(int n){
        for (int i = 0; i < n; i++) {
            System.out.println("hello world1");
        }
    }
}
